package com.taotao.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    /**
     * 展示登录页面
     * @return
     * @author: JSJ
     */
	@RequestMapping("/page/login")
	public String login(String redirect,Model model) {
		model.addAttribute("redirect", redirect);
		return "login";
	}
    /**
     * 展示注册页面
     * @return
     * @author: JSJ
     */
	@RequestMapping("/page/register")
	public String register() {
		return "register";
	}
}
